import request from './request.js'

const washCar = {
  // 我的商户
  myStore(data) {
    return request.post(
      '/business/SelfServiceCarWashStation/GetMyMerchantSelfServiceCarWashStationList',
      data
    )
  },
  // 站点管理
  siteMgt(data) {
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/GetSelfServiceCarWashStationList',
      data
    )
  },
  getWashCarState(data) {
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/SetSailGetState',
      data
    )
  },
  setSiteMgt(data){
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/UpdateCarWashStation',
      data
    )
  },
  repairSiteMgt(data){
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/UpdatErepairSuspendedService',
      data
    )
  },
  setSailGetState(data){
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/SetSailGetState',
      data
    )
  },
  siteMgtOpen(data){
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/UpdateSuspendedService',
      data
    )
  },
  // 资金列表
  getFlowList(data) {
    return request.post(
      '/business/SelfServiceCarWashStation/GetSelfServiceMoneyFlow',
      data
    )
  },

  // 资金列表-月收支汇总
  getMonthAggregate(data) {
    return request.post(
      '/business/SelfServiceCarWashStation/GetMonthAggregate',
      data
    )
  },

  // 资金详情
  getFlowDetail(data) {
    return request.post(
      '/business/SelfServiceCarWashStation/GetFlowDetail?Id=' + data.id
    )
  },
  getSelfServiceCarHomePage(data) {
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/GetSelfServiceCarHomePageByStoreId',
      data
    )
  },
	//商户端合伙首页店铺类型获取
	GetStoreMerchantTypeList(data) {
	  return request.post(
	    '/api/business/core/Account/GetStoreMerchantTypeList',
	    data
	  )
	},
  getMyBusinessReport(data) {
    return request.post(
      '/api/business/core/SelfServiceCarWashStation/GetMyBusinessReport',
      data
    )
  },

  // 权限管理列表
  getPermissionList(data) {
    return request.post(
      '/business/SelfServiceCarWashManagemen/GetCarWashManagementList',
      data
    )
  },


  // 权限管理-权限详情
  getCarWashManagementDetail(data) {
    return request.post(
      '/business/SelfServiceCarWashManagemen/GetCarWashManagementDetail',
      data
    )
  },
  // 权限管理-选择站点列表
  getStationList(data) {
    return request.post(
      '/business/SelfServiceCarWashManagemen/GetStationListManagementByStoreId',
      data
    )
  },

  // 权限管理-新增
  addPermission(data) {
    return request.post(
      '/business/SelfServiceCarWashManagemen/AddCarWashManagement',
      data
    )
  },

  // 权限管理-修改
  editPermission(data) {
    return request.post(
      '/business/SelfServiceCarWashManagemen/EditCarWashManagement',
      data
    )
  },

  // 营销推广-年卡信息
  getSelfServiceCarWashCardById(data) {
    return request.post(
      '/client/SelfServiceCarWashCard/GetSelfServiceCarWashCardById',
      data
    )},

  // 根据站点ID获取基建信息
  GetInfrastructureInfoByStationId(data) {
	  return request.post(
	    '/api/business/core/SelfServiceCarWashStationInfrastructure/GetInfrastructureInfoByStationId',
	    data
	  )
  },
  // 添加自助洗车站基建信息
  AddStationInfrastructure(data) {
	  return request.post(
	    '/api/business/core/SelfServiceCarWashStationInfrastructure/AddStationInfrastructure',
	    data
	  )
  },
  // 获取我的基建洗车站点回本情况列表
  GetMyStationInfrastructurePayoff(data) {
	  return request.post(
	    '/api/business/core/SelfServiceCarWashStationInfrastructure/GetMyStationInfrastructurePayoff',
	    data
	  )
  },
  // 获取我的基建总回本
  GetMyStationInfrastructureTotalPayoff(data) {
	  return request.post(
	    '/api/business/core/SelfServiceCarWashStationInfrastructure/GetMyStationInfrastructureTotalPayoff',
	    data
	  )
  },
  // 获取自助洗车设备成本列表
  GetSelfServiceCarWashDevicePayoffList(data) {
	  return request.post(
	    '/api/business/core/SelfServiceCarWashStation/GetSelfServiceCarWashDevicePayoffList',
	    data
	  )
  },
  // 获取我的设备总回本情况
  GetSelfServiceCarWashDeviceTotalPayoff(data) {
	  return request.get(
	    '/api/business/core/SelfServiceCarWashStation/GetSelfServiceCarWashDeviceTotalPayoff',
	    data
	  )
  },

}

export default washCar
